package com.jyu.hakkatranslation.controller;

import com.google.gson.Gson;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller//这里的顺序是根据页面顺序
public class IndexController {
    /**
     * 此页均为跳转页面，具体传参请重写其他控制层
     * @return
     */
    @RequestMapping(value = "/")
    public String AllIndex(){
        System.out.println("中转总首页");
        return "hakka1/museum";
    }
    @RequestMapping(value = "/index.html")
    public String Index(){
        System.out.println("中转首页");
        return "index";
    }
    @RequestMapping("/hakka/museum.html")
    public String JumpMuseum(){
        System.out.println("中转教材");
        return "hakka1/museum";

    }
    @RequestMapping("/hakka/tutorial.html")
    public String JumpTutorial(){
        System.out.println("中转教材");
        return "hakka1/tutorial";
    }

    @RequestMapping("/hakka/collect.html")
    public String JumpCollect(){
        System.out.println("中转收集");
        return "hakka1/collect";
    }
    @RequestMapping("/hakka/mandarin_to_hakka.html")
    public String JumpMandarin_to_hakka(){
        System.out.println("中转客浦翻译");
        return "hakka1/mandarin_to_hakka";
    }
    @RequestMapping("/hakka/hanzi_to_pinyin.html")
    public String JumpPinyin(){
        System.out.println("中转线上注音");
        return "hakka1/hanzi_to_pinyin";
    }
    @RequestMapping("/hakka/languageRegion.html")
    public String JumpLaguageRegion(){
        System.out.println("中转语言地区");
        return "hakka1/languageRegion";
    }
    @RequestMapping("/hakka/hot.html")
    public String JumpHotIndex(){
        System.out.println("中转网址巡航");
        return "hakka1/hot";
    }
    @RequestMapping("/login.html")
    public String login(){
        System.out.println("跳转登录页");
        return "login";
    }

    @RequestMapping("/register.html")
    public String register(){
        System.out.println("跳转注册页");
        return "register";
    }

//    @RequestMapping("/login1.html")
//    public String login(){
//        System.out.println("中转网址巡航");
//        return "login1";
//    }
    @RequestMapping("/music.html")
    public String music(){
        return "music";
    }
}
